public class test {
    public static void main(String[] args) {
        int[] array ={1,2,3};
        //第一种打印方式
        for (int i = 0; i < 3; i++) {
            System.out.print(array[i] + " ");
        }
        System.out.println();

        //第二种打印方式，for-each 增加for循环
        for ( int X: array) {
            System.out.print(X +" ");

        }
    }
}
